<script setup lang="ts">
const newValue = defineModel('newValue')
const $emit = defineEmits(["update:newValue"])
const handle = () => {
  $emit('update:newValue', newValue.value + 1000)
}
</script>

<template>
  <div>儿子:{{ newValue }}</div>
  <button @click="handle">加钱</button>
</template>

<style scoped>

</style>
